/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.menosehmais.framework.security;

import br.com.menosehmais.framework.security.role.Role;
import br.com.menosehmais.model.ContaDO;

/**
 *
 * @author Rafael Quintino
 */
public class AccountInfo {
    
    private String sessionId;
    private String accountId;
    private String login;
    private String accountClassName;
    
    public Role role(){return null;}
    
    public AccountInfo() {
        
    }
    
    public AccountInfo(ContaDO account, String sessionId) {
        this.accountId = account.getId();
        this.login = account.getLogin();
        this.sessionId = sessionId;
        this.accountClassName = account.getClass().getName();
    }

    public String getAccountClassName() {
        return accountClassName;
    }

    public void setAccountClassName(String accountClassName) {
        this.accountClassName = accountClassName;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }
    
}
